<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <button>获取数据</button>
  <script>

    const btn = document.querySelector("button")
    function fn(data) {
      console.log(data)
    }
    btn.onclick = function () {
      const s = document.createElement("script")
      s.src = "http://localhost:4000/users?cb=fn"
      document.body.append(s)
    }


  </script>

</body>

</html>
